export default {
    state: {
		openPrivates:{},//此次应用请求过,socket每次断开连接都清空，因为我怕修改了配置没有及时更新上，细节后期优化
    },
    mutations: {
		setOpenPrivates(state,{uuid,type}){
			if(state.openPrivates[uuid]){
				state.openPrivates[uuid][type] = true
			}else{
				state.openPrivates[uuid] = {}
				state.openPrivates[uuid][type] = true
			}
		},
		clearOpenPrivates(state){
			state.openPrivates = {}
		},
		//清除某个
		delOpenPrivates(state,uuid){
			state.openPrivates[uuid] && delete state.openPrivates[uuid]
		},
    },
	getters: {
		isOpenPrivate: (state) => (uuid,type) => {
			if(state.openPrivates[uuid] && state.openPrivates[uuid][type]){
				return true
			}else{
				return false
			}
		}
	},
    actions: {
		
    }
};